package com.digitalchina.lxnsy.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

import chihane.jdaddressselector.model.HistorySearch;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：白彦东
 * 创建时间：2016/12/28 18:10
 * 修改备注：
 * ================================================
 */

public class SearchHistoryHolder extends BaseViewHolder<HistorySearch> {

    private TextView tvKeyWord;

    public SearchHistoryHolder(ViewGroup parent) {
        super(parent, R.layout.item_search_history);
        tvKeyWord = $(R.id.item_search_history_tv_keyword);
    }

    @Override
    public void setData(HistorySearch data) {
        super.setData(data);
        tvKeyWord.setText(data.getKeyWord());
    }

}
